﻿using Abp.Application.Services.Dto;
using SingleUserMall.Common;
using SingleUserMall.Stores.Form;
using SingleUserMall.Stores.VO;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Stores
{
    /// <summary>
    /// 店铺管理
    /// </summary>
    [Description("店铺管理")]
    public interface IStoreManageAppService : IManageService
    {
        /// <summary>
        /// 获取店铺列表包含查询参数
        /// </summary>
        /// <returns></returns>
        Task<PagedResultDto<StoreVO>> GetStoresBySearchAsync(StoreSearchForm form);
        /// <summary>
        /// 获取待审核的店铺列表包含查询参数
        /// </summary>
        /// <returns></returns>
        Task<PagedResultDto<StoreVO>> GetVerifyStoresByAsync(StoreVerifyPagedForm form);
        /// <summary>
        /// 审核商铺
        /// </summary>
        /// <returns></returns>
        Task VerifyStoresAsync(StoreAuditForm form);
        /// <summary>
        /// 获取店铺列表
        /// </summary>
        /// <returns></returns>
        Task<ListResultDto<StoreVO>> GetStoresAsync();
        /// <summary>
        /// 获取店铺详情
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task<StoreVO> GetStoreAsync(SingleId<int> form);
        /// <summary>
        /// 保存店铺
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task SaveStoreAsync(StoreForm form);
        /// <summary>
        /// 店铺结算
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task SetStoreBanlanceAsync(StoreBanlanceForm form);
        /// <summary>
        /// 根据用户Id获取店铺
        /// </summary>
        /// <returns></returns>
        Task<StoreVO> GetStoreByUserId();
    }
}
